package work06;

import java.util.Scanner;

public class MyMathDemo {
    public static void main(String[] args) {
        System.out.println("请输入两个数");
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        MyMath myMath=new MyMath();
        System.out.println("a和b的加法结果:\t"+myMath.add(a,b));
        System.out.println("a和b的减法结果:\t"+myMath.sub(a,b));
        System.out.println("a和b的乘法结果:\t"+myMath.mul(a,b));
        System.out.println("a和b的除法结果:\t"+myMath.div(a,b));







    }
}
